package Function;

import interfaces.DALException;
import dto_objects.AuthorDTO;
import dto_objects.BookDTO;
import dto_objects.SubjectDTO;
import dto_objects.UserDTO;
import dto_objects.PublisherDTO;
import java.util.List;

public class FunctionLIBRARY extends FunctionUSER {

	
	public void createBook(BookDTO book, int authorID, int subjectID) throws DALException{
		SQLBook.createBook(book, authorID, subjectID);
	}
	
	public UserDTO getUserByUsrID(int UserID) throws DALException{
		return SQLUser.getUserByUsrID(UserID);
	}
	
	public BookDTO getBookByISBN(int ISBN) throws DALException{
		return SQLBook.getBookByISBN(ISBN);
	}
	
	public List<BookDTO> getBookCopyListByISBN(int ISBN) throws DALException{
		return SQLBook.getBook_CopyListByISBN(ISBN);
	}
	
	
	public void deleteBook_Copy(int bookID) throws DALException{
		SQLBook.deleteBook_Copy(bookID);
	}
	
	public void createBook_Copy(BookDTO book) throws DALException{
		SQLBook.createBook_Copy(book);
	}
	
	public void updateBook(BookDTO book, int authorID, int subjectID) throws DALException{
		SQLBook.updateBook(book, authorID, subjectID);
	}
	
	public List<PublisherDTO> getPublisherIdList() throws DALException{
		return SQLBook.getPublisherIdList();
		
	}
	
	public List<SubjectDTO> getSubjectIdList() throws DALException{
		return SQLBook.getSubjectIdList();
		
	}
	
	public List<AuthorDTO> getAuthorIdList() throws DALException{
		return SQLBook.getAuthorIdList();
		
	}
}
